package cn.oesoft.tennissystem.service;

import java.util.List;

import com.github.pagehelper.PageInfo;

import cn.oesoft.tennissystem.model.entity.TennisRacket;
/**
 * @Classname ITennisRacketService
 * @Description TODO
 * @Date 2019-3-14 9:46
 * @Created by CrazyStone
 */

public interface ITennisRacketService {
    // 分页查询列表
    public PageInfo<TennisRacket> getWithPage(Integer page, Integer count);

    // 统计热度前10的网球拍信息
    public List<TennisRacket> getHeatTennisRackets();

    // 根据网球拍id查询单个网球拍详情
    public TennisRacket getById(Integer id);

    // 发布网球拍
    public void publish(TennisRacket TennisRacket);

    // 根据主键更新网球拍
    public void updateById(TennisRacket TennisRacket);

    // 根据主键删除网球拍
    public void deleteById(int id);
    
    // 根据网球拍标题搜索网球拍
    public List<TennisRacket> getByTitle(String title);
}

